package power

type Power struct {
	ID 			uint 	`json:"id" gorm:"primaryKey"`
	PowerId		uint	`json:"power_id" gorm:"comment:上级权限id,0为顶级" validate:"required,max=11,number"`
	Name 		string 	`json:"name" gorm:"comment:权限名称" validate:"required,max=20"`
	MenuUrl		string	`json:"menu_url" gorm:"common:前端菜单路由" validate:"omitempty,max:100"`
	Url 		string 	`json:"url" gorm:"comment:权限路径" validate:"omitempty,max=100"`
	Type		uint	`json:"type" gorm:"comment:1为菜单，2位权限，3为菜单附属权限" validate:"required,max=1,number"`
	CreateTime 	int64 	`json:"create_time" gorm:"autoCreateTime"`
	UpdateTime 	int64 	`json:"update_time" gorm:"autoUpdateTime"`
}
